package com.whut.mapper;

import com.whut.model.Newmembershipinfo;

import java.util.List;

public interface NewmembershipinfoMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Newmembershipinfo record);

    int insertSelective(Newmembershipinfo record);

    Newmembershipinfo selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Newmembershipinfo record);

    int updateByPrimaryKey(Newmembershipinfo record);

    Newmembershipinfo findMemberShipByRisksNum(String maxRiskName,String secondaryRiskName, Integer maxRiskNum, Integer secondaryRiskNum);

    List<Newmembershipinfo> findMemberShipByRisksNum1(String maxRiskName,String secondaryRiskName, Integer maxRiskNum, Integer secondaryRiskNum,List<Integer> specialistId);

    Newmembershipinfo findMemberShipByRisksNumAndLastRiskName(String maxRiskName, String secondaryRiskName, String lastRiskName, Integer maxRiskNum, Integer secondaryRiskNum);

    List<Newmembershipinfo> findMemberShipByRisksNumAndLastRiskName1(String maxRiskName, String secondaryRiskName, String lastRiskName, Integer maxRiskNum, Integer secondaryRiskNum,List<Integer> specialistId);

    List<Newmembershipinfo> simplefindMemberShipByRisksNum(Integer riskNum1,Integer riskNum2,Integer riskNum3,Integer riskNum4,List<Integer> specialistId);

    List<Newmembershipinfo> getAllNewmembershipById(Integer specialistId);

    void addNewmemberShipInfo(Newmembershipinfo record);

    void deleteNewmemberShipInfo(Integer mkey);

    void updateNewmemberShipInfo(Newmembershipinfo record);
}